package cn.young.javalearning.designpattern.factorypattern.bean.f_bean;

public class OrangeWrapper extends FruitWrapper{
    private Orange orange;

    public OrangeWrapper(Orange orange) {
        this.orange = orange;
    }

    @Override
    public String toString() {
        return "OrangeWrapper{" +
                "orange=" + orange +
               "}" + super.toString();
    }

    public Orange getOrange() {
        return orange;
    }

    public OrangeWrapper setOrange(Orange orange) {
        this.orange = orange;
        return this;
    }
}
